{% extends 'base.html' %}
{% block head-ext %}
	<link rel="stylesheet" href="/static/css/user.css" media="screen" type="text/css" />
{% endblock %}

{% block bd-body %}
<section class="user-form-wrap">
	<h1>WebChat 更改密码</h1>
	<div>
		{% if err_msg %}
			<span>{{ err_msg }}</span>
		{% endif %}
	</div>
	<form class="user-form" action="{% url 'setpwd' %}" method="post">
		{% csrf_token %}
		<div>
			<input type="text" name="username" class="username" placeholder="请输入用户名">
			{% if errors.username.0 %}
				<span>{{ errors.username.0 }}</span>
			{% endif %}
		</div>
		<div>
			<input type="password" name="password" class="password" placeholder="请输入原密码">
			{% if errors.password.0 %}
				<span>{{ errors.password.0 }}</span>
			{% endif %}
		</div>
		<div>
			<input type="password" name="password2" class="password2" placeholder="请输入新密码">
		</div>
		<input type="submit" class="submit" value="提交">
	</form>
</section>
{% endblock %}


